<template>
  <div>
    <el-dialog
      v-dialogDrag
      :visible="dialogFormVisible"
      width="20%"
      top="15vh"
      :title="title"
      @close="close"
    >
      <p v-for="(item, index) in allData" :key="index">
        {{ index + 1 }}、{{ item }}
      </p>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="close">关闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialogFormVisible: true,
    };
  },
  props: {
    allData: {
      type: Array,
      default: () => [],
    },
    title: {
      type: String,
      default: "以下信息未填写，无法保存",
    },
  },
  created() {},
  methods: {
    close() {
      this.$emit("closeDialog");
    },
  },
};
</script>
<style lang="less" scoped>
.dataFormStyle {
  padding: 0px 71px;
}
.width100Style {
  width: 100%;
}
.titleStyle {
  border-bottom: 0.0625rem solid #eee;
  padding-bottom: 1.0625rem;
}
.buttonStyle {
  margin-left: 6.25rem;
}
.warning {
  color: @warning;
}
</style>
